package com.niiwoo.civet.mobile.vo.response.intelligenceInvest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Setter
@Getter
@ApiModel("智能投单条返回详情")
public class IntelligenceInvestResponseVO {
    @ApiModelProperty(value = "智能投名称", required = true)
    private String title;
    @ApiModelProperty("年化利率(10%则返回0.1)")
    private BigDecimal borrowRate;
    @ApiModelProperty("年化利率*100(10%则返回10)")
    private String borrowRateDesc;
    @ApiModelProperty("期限")
    private Integer deadline;
    @ApiModelProperty("期数单位(1:月，2:天)")
    private Byte deadlineUnit;
    @ApiModelProperty("还款方式(1到期本息，2等额本息，3先息后本)")
    private Byte repaymentType;
    @ApiModelProperty("智能投包ID")
    private Long packageId;
    @ApiModelProperty("可投金额")
    private BigDecimal investingAmount;
    @ApiModelProperty("标的状态：1可投，2已抢光")
    private Integer projectStatus;
    @ApiModelProperty("活动信息")
    private ActivityInfo activityInfo;
    @ApiModelProperty("包类型(1：普通智能投，2：新手智能投)")
    private Byte packageType;
    @ApiModelProperty("总额")
    private BigDecimal contractAmount;

    @Getter
    @Setter
    public static class ActivityInfo {
        @ApiModelProperty("加息年化率10%则返回10")
        private BigDecimal increaseInterest;
        @ApiModelProperty("活动名称")
        private String activityTitle;
    }

}
